@import "./index.less";


#app {
  height: 100%;

  &.colorWeak {
    filter: invert(80%);
  }
  &.userLayout {
    overflow: auto;
  }
}

.layout.ant-layout {
  overflow-x: hidden;
  height: auto;

  &.mobile,
  &.tablet {
    .ant-layout-content {
      .content {
        margin: 24px 0 0;
      }
    }

    /**
     * ant-table-wrapper
     * 覆盖的表格手机模式样式，如果想修改在手机上表格最低宽度，可以在这里改动
     */
    .ant-table-wrapper {
      .ant-table-content {
        overflow-y: auto;
      }
      .ant-table-body {
        min-width: 800px;
      }
    }
    .topmenu {
      /* 必须为 topmenu  才能启用流式布局 */
      &.content-width-Fluid {
        .header-index-wide {
          margin-left: 0;
        }
      }
    }
  }

  &.mobile {
    .sidemenu {
      .ant-header-fixedHeader {
        &.ant-header-side-opened,
        &.ant-header-side-closed {
          width: 100%;
        }
      }
    }
  }

  &.ant-layout-has-sider {
    flex-direction: row;
  }

  .trigger {
    padding: 0 24px;
    font-size: 20px;
    line-height: 64px;
    transition: color .3s;
    cursor: pointer;
    &:hover {
      background: rgba(0, 0, 0, .025);
    }
  }

  .topmenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width .2s;

      &.ant-header-side-opened {
        width: 100%;
      }

      &.ant-header-side-closed {
        width: 100%;
      }
    }
    /* 必须为 topmenu  才能启用流式布局 */
    &.content-width-Fluid {
      .header-index-wide {
        max-width: unset;
        .header-index-left {
          flex: 1 1 1000px;
          .logo {
            margin-left: 25px;
          }
          .ant-menu.ant-menu-horizontal {
            flex: 1 1 calc(100vw - 190px - 238px - 25px);
            max-width: calc(100vw - 190px - 238px - 25px);
          }
        }
        .header-index-right {
          margin-right: 25px;
        }
      }

      .page-header-index-wide {
        max-width: unset;
      }
    }
  }

  .sidemenu {
    .ant-header-fixedHeader {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 9;
      width: 100%;
      transition: width .2s;

      &.ant-header-side-opened {
        width: calc(100% - 256px);
      }

      &.ant-header-side-closed {
        width: calc(100% - 80px);
      }
    }
  }

  .header {
    position: relative;
    height: 64px;
    padding: 0 12px 0 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  }

  .header,
  .top-nav-header-index {
    .user-wrapper {
      float: right;
      height: 100%;

      .action {
        display: inline-block;
        height: 100%;
        padding: 0 12px;
        color: rgba(0, 0, 0, .65);
        transition: all .3s;
        cursor: pointer;

        &:hover {
          background: rgba(0, 0, 0, .025);
        }

        .avatar {
          margin: 20px 8px 20px 0;
          color: #1890ff;
          vertical-align: middle;
          background: hsla(0, 0%, 100%, .85);
        }

        .icon {
          padding: 4px;
          font-size: 16px;
        }
      }
    }

    &.dark {
      .user-wrapper {
        .action {
          color: rgba(255, 255, 255, .85);
          a {
            color: rgba(255, 255, 255, .85);
          }

          &:hover {
            background: rgba(255, 255, 255, .16);
          }
        }
      }
    }
  }

  &.mobile,
  &.tablet {
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .trigger {
            padding: 0 12px;
            color: rgba(255, 255, 255, .85);
          }

          .logo.top-nav-header {
            flex: 0 0 56px;
            line-height: 58px;
            text-align: center;
            h1 {
              display: none;
            }
          }
        }
      }

      &.light {
        .header-index-wide {
          .header-index-left {
            .trigger {
              color: rgba(0, 0, 0, .65);
            }
          }
        }
        //
      }
    }
  }

  &.tablet {
    // overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
    .top-nav-header-index {
      .header-index-wide {
        .header-index-left {
          .logo > a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
        .ant-menu.ant-menu-horizontal {
          flex: 1 1 auto;
          white-space: normal;
        }
      }
    }
  }

  .top-nav-header-index {
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
    transition: background .3s, width .2s;

    .header-index-wide {
      display: flex;
      max-width: 1200px;
      height: 64px;
      padding-left: 0;
      margin: auto;

      .ant-menu.ant-menu-horizontal {
        flex: 0 1 835px;
        max-width: 835px;
        height: 64px;
        line-height: 64px;
        border: none;
      }

      .header-index-left {
        display: flex;
        flex: 0 1 1000px;

        .logo.top-nav-header {
          position: relative;
          flex: 0 0 165px;
          overflow: hidden;
          width: 165px;
          height: 64px;
          line-height: 64px;
          transition: all .3s;

          img,
          svg {
            display: inline-block;
            width: 32px;
            height: 32px;
            vertical-align: middle;
          }

          h1 {
            display: inline-block;
            margin: 0 0 0 12px;
            color: #fff;
            font-size: 16px;
            font-weight: 400;
            vertical-align: top;
          }
        }
      }

      .header-index-right {
        align-self: flex-end;
        flex: 0 0 238px;
        overflow: hidden;
        height: 64px;

        .content-box {
          float: right;
        }
      }
    }

    &.light {
      background-color: #fff;

      .header-index-wide {
        .header-index-left {
          .logo {
            h1 {
              color: #002140;
            }
          }
        }
      }
    }
  }

  // 内容区
  .layout-content {
    height: 100%;
    height: 64px;
    padding: 0 12px 0 0;
    margin: 24px 24px 0;
  }

  // footer
  .ant-layout-footer {
    padding: 0;
  }
}

.topmenu {
  .page-header-index-wide {
    max-width: 1200px;
    margin: 0 auto;
  }
}

// drawer-sider 自定义
.ant-drawer.drawer-sider {
  .sider {
    box-shadow: none;
  }

  &.dark {
    .ant-drawer-content {
      background-color: rgb(0, 21, 41);
    }
  }
  &.light {
    box-shadow: none;
    .ant-drawer-content {
      background-color: #fff;
    }
  }

  .ant-drawer-body {
    padding: 0;
  }
}

// 菜单样式
.sider {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  box-shadow: 2px 0 6px rgba(0, 21, 41, .35);

  .ant-layout-sider-children {
    overflow-y: hidden;

    &:hover {
      overflow-y: auto;
    }
  }

  &.ant-fixed-sidemenu {
    position: fixed;
    height: 100%;
  }

  .logo {
    position: relative;
    overflow: hidden;
    height: 64px;
    padding-left: 24px;
    line-height: 64px;
    background: #002140;
    transition: all .3s;

    img,
    svg,
    h1 {
      display: inline-block;
      vertical-align: middle;
    }

    img,
    svg {
      width: 32px;
      height: 32px;
    }

    h1 {
      margin: 0 0 0 12px;
      color: #fff;
      font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
      font-size: 20px;
      font-weight: 600;
      vertical-align: middle;
    }
  }

  &.light {
    background-color: #fff;
    box-shadow: 2px 0 10px 0 rgba(29, 35, 41, .17);

    .logo {
      background: #fff;
      box-shadow: 1px 1px 0 0 #e8e8e8;

      h1 {
        color: unset;
      }
    }

    .ant-menu-light {
      border-right-color: transparent;
    }
  }
}

// 外置的样式控制
.user-dropdown-menu {
  span {
    user-select: none;
  }
}
.user-dropdown-menu-wrapper.ant-dropdown-menu {
  padding: 4px 0;

  .ant-dropdown-menu-item {
    width: 160px;
  }

  .ant-dropdown-menu-item > .anticon:first-child,
  .ant-dropdown-menu-item > a > .anticon:first-child,
  .ant-dropdown-menu-submenu-title > .anticon:first-child .ant-dropdown-menu-submenu-title > a > .anticon:first-child {
    min-width: 12px;
    margin-right: 8px;
  }
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}

.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-right: 0;
      margin-bottom: 24px;

      .ant-form-item-control-wrapper {
        display: inline-block;
        flex: 1 1;
        vertical-align: middle;
      }

       > .ant-form-item-label {
        width: auto;
        padding-right: 8px;
        line-height: 32px;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }
  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

.content {
  .table-operator {
    margin-bottom: 18px;

    button {
      margin-right: 8px;
    }
  }
}
.homeBox {
  .backToBench {
    padding-top: 3.5rem;
    span {
      display: block;
      width: 160px;
      height: 60px;
      color: #666;
      font-size: 18px;
      font-weight: bold;
      line-height: 60px;
      text-align: center;
      background: #dfe1e3;
      border-top-right-radius: 9px;
      border-bottom-right-radius: 9px;
      cursor: pointer;
    }
  }
  .navBox {
    padding-top: 3.1rem;
    .titlebox {
      text-align: center;
    }
    .firstNavList {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 3.5rem 0;
      .rowItem {
        margin: 0 5px;
      }
    }
  }
  .homeBottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #bec2c9;
    font-size: 14px;
    line-height: 53px;
    text-align: center;
  }
}
.firstNavItem {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 180px;
  background: #fff;
  border-top: 3px solid #fff;
  cursor: pointer;
  &:hover {
    box-shadow: 0 6px 19px 1px rgba(62,105,135,.15);
    border-top: 3px solid rgba(36,111,255,1);
  }
  .anticon {
    margin-top: 20px;
    font-size: 50px;
  }
  p {
    margin-top: 20px;
    color: #777;
    font-family: Microsoft YaHei;
    font-size: 16px;
    font-weight: bold;
    line-height: 40px;
  }
  span {
    position: absolute;
    right: 10px;
    bottom: 10px;
  }
}
.firstNavItem.noAuth {
  p,
  img {
    opacity: .5;
    filter: grayscale(100%);
  }
}
.firstNavItem.hoverCur {
  box-shadow: 0 6px 19px 1px rgba(62,105,135,.15);
}
.popContent {
  .subRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    .subnavItem {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 120px;
      height: 80px;
      margin: 10px;
      background: #fff;
      cursor: pointer;
      &:hover {
        background-color: #246fff;
        p {
          color: #fff;
        }
      }
    }
    .subnavItem.noAuth {
      p {
        opacity: .5;
        filter: grayscale(100%);
      }
      &:hover {
        background-color: #fff;
        p {
          color: #16368a;
        }
      }
    }
    .icon {
      width: 30px;
      height: 30px;
    }
    p {
      color: #16368a;
      font-size: 14px;
      line-height: 23px;
    }
  }
}
.ant-menu-submenu-selected {
  color: #3eb2f6;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  background-color: rgba(0,132,255,1);
}
.ant-menu-item-selected > a,
.ant-menu-item-selected > a:hover {
  color: #fff;
}
.ant-pro-multi-tab {
  padding-top: 5px;
}
.ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
  height: 39px;
}
.ant-table-pagination {
  &.ant-pagination {
    float: none;
    text-align: center;
    .ant-pagination-item-active {
      background: @primary-color;
      &,
      a {
        color: #fff;
      }
    }
  }
}
.ant-table-thead tr th {
  white-space: nowrap;
  background-color: #f9fbfd;
  &,
  .ant-table-column-title {
    color: #888 !important;
  }
}

.form-group {
  .ant-form-item {
    display: flex;
  }
  .ant-form-item-control-wrapper {
    flex: 1;
  }
  .ant-form-item-label {
    width: 100px !important;
  }
  .ant-form-item-required {
    color: @color-red;
  }
}

.ant-table-body {
  overflow-x: auto !important;
}

.ant-layout.ant-layout-has-sider > .ant-layout,
.ant-layout.ant-layout-has-sider > .ant-layout-content {
  overflow: hidden;
}

.ant-layout {
  background: #f8fcfd;
}
.ant-card-head {
  position: relative;
  font-size: 14px;
}
.title-dot {
  .ant-card-head::before {
    content: "";
    position: absolute;
    top: 46%;
    left: 12px;
    width: 5px;
    height: 5px;
    background: @primary-color;
    border-radius: 50%;
  }
}
.ant-tabs .ant-tabs-large-bar .ant-tabs-nav-container {
  font-size: 14px !important;
}
.ant-card {
  &.box-shadow {
    border: none;
  }
}
@border: 1px solid #eff4f9;
.case-base-info {
  border-top: @border;
  border-bottom: @border;
  .case-baseinfo-col {
    border-right: @border;
  }
  .case-user-card {
    padding: 20px 0;
    table {
      width: 100%;
      margin-bottom: 0;
    }
    table td {
      padding-right: 20px;
    }
    p:last-child {
      margin-bottom: 0;
    }
    figure {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      width: 100%;
      height: 170px;
      margin: 0;
      border: @border;
      img {
        width: 100%;
        min-width: 100px;
        max-width: 130px;
        max-height: 170px;
      }
    }
  }
}
.case-table-info {
  table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
  }
  tr th,
  tr td {
    padding: 14px;
    line-height: 1;
    white-space: nowrap;
    border: @border;
  }
  &.row-border {
    th,
    td {
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
    }
  }
  tr th {
    width: 20%;
    color: #79879c;
    font-weight: normal;
    background: #f9fbfd;
  }
  &.th-center th {
    text-align: center;
  }
}

.case-tabs {
  .ant-tabs .ant-tabs-large-bar .ant-tabs-nav-container {
    font-size: 14px !important;
    background: #eef6fd;
  }
  .ant-card-head {
    padding: 0;
  }
  .ant-card-bordered {
    border: @border;
  }
  .ant-tabs-ink-bar {
    height: 0 !important;
  }
  .ant-tabs-nav-wrap {
    margin-bottom: 0 !important;
  }
  .ant-tabs-tab {
    padding: 12px 30px !important;
    margin-right: 0 !important;
    &.ant-tabs-tab-active {
      background: #fff;
      // border-bottom: @border;
    }
  }
  .ant-card-body {
    padding: 0 !important;
    .ant-collapse {
      background: #fff;
      & > .ant-collapse-item {
        border-top: @border;
        border-bottom: none;
      }
      .ant-collapse-content-box {
        padding: 0;
      }
    }
  }
}


.shanshuo {
          animation: blink 1s infinite;

  -webkit-animation: blink 1s infinite; /*Safari and Chrome*/
  span {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: rgba(93, 215, 226, .9);
    border-radius: 100%;
  }
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 100;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 100;
  }
  100% {
    opacity: 0;
  }
}
